package io.grpc.examples.helloworldtls.trust;

import javax.net.ssl.TrustManagerFactory;
import java.security.Provider;

/**
 * 采用区块链进行证书校验。
 */
public class MyTrustManagerFactory extends TrustManagerFactory {

    private static final Provider PROVIDER = new Provider("asgard", 0.3, "asgard") {
        private static final long serialVersionUID = 2718281828L;
    };

    public MyTrustManagerFactory(String algorithm) {
        super(new MyTrustManagerFactorySpi(), PROVIDER, algorithm);
    }

}
